﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PalFramework.Template;

namespace PalBattleEmulator.Object.Unit
{
    public class CharacterFactory
    {
        public static Character Create(int id)
        {
            Character character = new Character();
            ICharacterTmpl tmpl = ContextModules.CharacterTmplManager.GetTmpl(id);
            character.Template = tmpl;
            character.Sprite = tmpl.Sprite;
            return character;
        }
    }
}
